package org.elsfs.framework.event;

import java.util.EventObject;

/**
 * hhs.
 *
 * @author zeng
 * @since 0.0.1
 */
public abstract class Event extends EventObject {
  /** 时间戳. */
  private final long timestamp;

  /**
   * event.
   *
   * @param source source
   */
  public Event(final Object source) {
    super(source);
    this.timestamp = System.currentTimeMillis();
  }

  /**
   * timestamp.
   *
   * @return timestamp
   */
  public long getTimestamp() {
    return this.timestamp;
  }
}
